package com.yy.util;

/**
 * 雪花算法-主要用来统一 workerId和dataCebterId
 *
 * @author sunzhiqiang
 * @date 2021/12/13 17:20:42
 */
public class Snowflake {

    private Snowflake() {
    }

    public static long nextId() {
        return new cn.hutool.core.lang.Snowflake(1, 1).nextId();
    }
}
